package cn.lecosa.spark.es.entity;

import static org.hamcrest.CoreMatchers.instanceOf;

import java.io.Serializable;

public class FaceObj implements Serializable{
	private String f_face_id;
	private Double f_face_degree;
	
	
	public FaceObj() {
		super();
	}
	public FaceObj(String f_face_id, Double f_face_degree) {
		super();
		this.f_face_id = f_face_id;
		this.f_face_degree = f_face_degree;
	}
	public String getF_face_id() {
		return f_face_id;
	}
	public void setF_face_id(String f_face_id) {
		this.f_face_id = f_face_id;
	}
	public Double getF_face_degree() {
		return f_face_degree;
	}
	public void setF_face_degree(Double f_face_degree) {
		this.f_face_degree = f_face_degree;
	}
	
	
	@Override
	public boolean equals(Object arg0) {
		if(arg0 instanceof FaceObj){
			FaceObj o = (FaceObj)arg0;
			if (o.getF_face_id().equals(this.getF_face_id()))
				return true;
		}
		return false;
	}
}
